package example_04;

public class array_01 {
    public static void main(String[] args) {
        int [] nums = {1,2,3,6,9,5,4,6};
        int min = nums[0];
        int sum = 0;
        for (int i = 0;i<nums.length;i++){
//            System.out.println(nums[i]);
            if (min>nums[i]) min=nums[i];
            sum+=nums[i];
        }
        System.out.println(min+"  "+sum);
//        int [] nums1 = new int[6];
    }
}
